package com.bitin.module.user.domain.repository;

import com.bitin.module.user.domain.entity.Employee;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Repository;

import javax.management.Query;

/**
 * @Author: Mr.Lu
 * @Datetime 2024/8/13 23:03
 */
@Repository
public interface EmployeeRepository extends JpaRepository<Employee, String>, JpaSpecificationExecutor<Employee> {

    Query salary(@Nullable Specification<Employee> spec);
}
